public class Student {
    private String School;
    private String name;
    private int age;
    private double avg;
    public Student() {
    }
    public Student(String school, String name, int age, double avg) {
        this.School = school;
        this.name = name;
        this.age = age;
        this.avg = avg;
    }
    public void show() {
        System.out.println("学校= " + School+ " 姓名=" + name + " 年龄=" + age + " 平均分=" + avg);

    }
    public String getSchool() {
        return School;
    }
    public void setSchool(String school) {
        School = school;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public double getAvg() {
        return avg;
    }
    public void setAvg(double avg) {
        this.avg = avg;
    }
}
